package QL;

import java.util.Map;

public class ButlerPlayerResourceAddRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 玩家Id
    /// </summary>
    public long UserId;

    /// <summary>
    /// 资源类型 1携带资源 2金库资源
    /// </summary>
    public long ResourceType;

    /// <summary>
    /// 物品名称
    /// </summary>
    public String ItemName;

    /// <summary>
    /// 增减数量 >0增加 <0减少
    /// </summary>
    public long Delta;

    /// <summary>
    /// 操作员
    /// </summary>
    public String Operater;

    @Override
    public String GetApiName()
    {
        return "butler.player.resource.add";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("user_id", String.valueOf(UserId));
        map.put("resource_type", String.valueOf(ResourceType));
        map.put("item_name", ItemName);
        map.put("delta", String.valueOf(Delta));
        map.put("operater", Operater);
    }
}
